#include "main.h"

QDate T_DATE(2024,6,7),N_DATE(0,0,0);
int key_val;
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    setWindow sw;
    //连接w与sw之间的信号与槽
    QObject::connect(&w,&MainWindow::SendDataToSetWindow,&sw,&setWindow::DataFromMainWindow);
    QObject::connect(&w,&MainWindow::ShowSetWindow,&sw,&setWindow::ShowWinodw);
    QObject::connect(&sw,&setWindow::SendDataToMainWindow,&w,&MainWindow::DataFromSetWindow);
    w.show();
    return a.exec();
}
